<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Rule - TheyWorkForYou Test</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <script src="assets/jsunittest.js" type="text/javascript"></script>
    <script src="../src/canonical-url.user.js" type="text/javascript"></script>
    <link rel="stylesheet" href="assets/unittest.css" type="text/css" />
  </head>
  <body>

    <div id="content">

      <div id="header">
        <h1>JavaScript unit test file</h1>
      </div>

      <!-- Log output (one per Runner, via {testLog: "testlog"} option)-->
      <div id="testlog"></div>
  
      <!-- Put sample/test html here -->
      <div id="sample">
      </div>
    </div>

    <script type="text/javascript">
    // <![CDATA[
      new Test.Unit.Runner({
        setup: function() {
          this.location = document.createElement('a');
          this.location.href = 'http://www.theyworkforyou.com/wrans/?id=2009-03-23a.263385.h&s=activeplaces#g263385.r0';
        },
    
        teardown: function() {
        },

        'test should generate the permalink': function() { with(this) {
          var permalink = new CanonicalUrl.Permalink(this.location);
          assertEqual('http://www.theyworkforyou.com/wrans/?id=2009-03-23a.263385.h', permalink.href());
        }}

      }); 
    // ]]>
    </script>
  </body>
</html>